package com.zeng.configuration.microprofile.config.source;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zyb
 */
public class JavaSystemPropertiesConfigSource extends MapBasedConfigSource {


    public JavaSystemPropertiesConfigSource() {
       super("Java System Properties",100);
    }

    @Override
    protected Map<String, String> prepareConfigData() throws Throwable {
        Map systemProperties = System.getProperties();
        return new HashMap<>(systemProperties);
    }
}
